package com.aplink.generic.pojo;

import android.text.TextUtils;

import com.aplink.generic.util.ResourcesHelper;

public class MainMenuItem {
    private String mActivityName;
    private String mIcon;
    private String mID;
    private String mTitle;

    public String getActivityName() {
        return this.mActivityName;
    }

    public String getIcon() {
        return this.mIcon;
    }

    public int getIconID() {
        if (TextUtils.isEmpty(this.mIcon)) {
            return ResourcesHelper.RESOURCE_NOT_FOUND;
        }
        return ResourcesHelper.getDrawableIdByName(this.mIcon);
    }

    public String getID() {
        return this.mID;
    }

    public String getTitle() {
        return this.mTitle;
    }

    public void setActivityName(final String activityName) {
        this.mActivityName = activityName;
    }

    public void setIcon(final String icon) {
        this.mIcon = icon;
    }

    public void setID(final String iD) {
        this.mID = iD;
    }

    public void setTitle(final String title) {
        this.mTitle = title;
    }
}
